all:server client

server:protobuf_server.cc request.pb.cc ../../../../third/muduo-master/examples/protobuf/codec/codec.cc
	g++ -o $@ $^ -std=c++11 -I../../../../include -L../../../../lib -lmuduo_net -lmuduo_base -lprotobuf -lpthread -lz

client:protobuf_client.cc request.pb.cc ../../../../third/muduo-master/examples/protobuf/codec/codec.cc
	g++ -o $@ $^ -std=c++11 -I../../../../include -L../../../../lib -lmuduo_net -lmuduo_base -lprotobuf -lpthread -lz

.PHONY:clean
clean:
	rm -rf server client
